<?php  
include("../../config/config.php");

if($_POST["button"] == "Insert")  

{
	$nip = $_POST['nip'];
	$nama = $_POST['nama'];
	$password = $_POST['password'];
	
	$departemen = 0;
	$jenis = 1;
	$status = 1;
	$team = 1;
	
	
	
		$sql = "INSERT INTO biodata(NIP,NAMA, PASSWORD_PEGAWAI,ID_DEPARTEMEN, ID_ROLE, ID_STATUS, ID_TEAM)
		VALUES ('$nip','$nama','$password', '$departemen', '$jenis','$status','$team')";
		$result = mysql_query($sql) or die(mysql_error());;
		mysql_close();
		header('Location: /mpd/admin/view/tambahgh.php');
}
?>
